import request from '@/utils/request'

// 查询房间信息记录列表
export function listRoomrecord(query) {
  return request({
    url: '/system/roomrecord/list',
    method: 'get',
    params: query
  })
}

// 查询房间信息记录详细
export function getRoomrecord(id) {
  return request({
    url: '/system/roomrecord/' + id,
    method: 'get'
  })
}

// 新增房间信息记录
export function addRoomrecord(data) {
  return request({
    url: '/system/roomrecord',
    method: 'post',
    data: data
  })
}

// 修改房间信息记录
export function updateRoomrecord(data) {
  return request({
    url: '/system/roomrecord',
    method: 'put',
    data: data
  })
}

// 删除房间信息记录
export function delRoomrecord(id) {
  return request({
    url: '/system/roomrecord/' + id,
    method: 'delete'
  })
}
